import request from '@/utils/request.js';

export const addRegionService = (data) => {
  return request.post('/region/add', data);
};

export const getRegionById = (id) => {
  return request.get('/region/getById', { params: { id } });
};

export const updateRegionService = (data) => {
  return request.put('/region/update', data);
};

export const deleteByIdRegionService = (id) => {
  return request.delete(`/region/delete/${id}`);
};

export const pageListRegionService = (params) => {
  return request.get('/region/pageList', { params });
};
